The reason for the Invoice line charge, expressed as a code.
請求書明細行の追加請求理由をコードで表現。


About

Syntax binding
ubl:Invoice / cac:InvoiceLine / cac:AllowanceCharge / cbc:AllowanceChargeReasonCode
Restricted Syntax Cardinality
0..1
Example
CG
UBL 2.1
XPath
/ Invoice / cac:InvoiceLine / cac:AllowanceCharge [ cbc:ChargeIndicator = true() ] / cbc:AllowanceChargeReasonCode
Occurrence
0..1
Datatype
AllowanceChargeReason_CodeType
UBL Definition
A mutually agreed code signifying the reason for this allowance or charge.
Namespace
cbc urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2

Semantic

Business Term

Invoice line charge reason code

請求書明細行の追加請求理由コード
ID
ibt-145
Description
The reason for the Invoice line charge, expressed as a code.
請求書明細行の追加請求理由をコードで表現。
Aligned Cardinality
0..1
Semantic datatype
Code

Code list

UNCL5189
Allowance reason codes (UNCL5189 subset)
UNCL7161
Charge reason code (UNCL7161)

VERSION 1.0 RULES

Unchanged
Same as 0.9.3

VERSION 0.9.3 RULES
JP PINT 0.9.3 Shared rules
ibr-044(fatal)
Unchanged
Same as 0.9.2
ibr-cl-20(fatal)
Changed Message
[ibr-cl-20]-Coded charge reasons (ibt-105, ibt-145) MUST belong to the UNCL 7161 code list
context
cac:AllowanceCharge[cbc:ChargeIndicator = true()]/cbc:AllowanceChargeReasonCode
test
(
  (
    not(contains(normalize-space(.), ' ')) and
    contains(' AA AAA AAC AAD AAE AAF AAH AAI AAS AAT AAV AAY AAZ ABA ABB ABC ABD ABF ABK ABL ABN ABR ABS ABT ABU ACF ACG ACH ACI ACJ ACK ACL ACM ACS ADC ADE ADJ ADK ADL ADM ADN ADO ADP ADQ ADR ADT ADW ADY ADZ AEA AEB AEC AED AEF AEH AEI AEJ AEK AEL AEM AEN AEO AEP AES AET AEU AEV AEW AEX AEY AEZ AJ AU CA CAB CAD CAE CAF CAI CAJ CAK CAL CAM CAN CAO CAP CAQ CAR CAS CAT CAU CAV CAW CAX CAY CAZ CD CG CS CT DAB DAD DAC DAF DAG DAH DAI DAJ DAK DAL DAM DAN DAO DAP DAQ DL EG EP ER FAA FAB FAC FC FH FI GAA HAA HD HH IAA IAB ID IF IR IS KO L1 LA LAA LAB LF MAE MI ML NAA OA PA PAA PC PL RAB RAC RAD RAF RE RF RH RV SA SAA SAD SAE SAI SG SH SM SU TAB TAC TT TV V1 V2 WH XAA YY ZZZ ',
      concat(' ', normalize-space(.), ' ')
    )
  )
)

VERSION 0.9.2 RULE
JP PINT 0.9.2 Shared rule
ibr-044(fatal)
Still valid
[ibr-044]-Each Invoice line charge (ibg-28) MUST have an Invoice line charge reason (ibt-144) or an invoice line charge reason code (ibt-145).
context
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] |
//cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]
test
exists(cbc:AllowanceChargeReason) or
exists(cbc:AllowanceChargeReasonCode)

VERSION 0.9.1 RULES
Obsoleted
Shared rules (0.9.1)
ibr-044 (fatal)
[ibr-044]-Each Invoice line charge (ibg-28) MUST have an Invoice line charge reason (ibt-144) or an invoice line charge reason code (ibt-145).
context
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] |
//cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]
test
exists(cbc:AllowanceChargeReason) or
exists(cbc:AllowanceChargeReasonCode)
ibr-cl-20 (fatal)
[ibr-cl-20]-Coded charge reasons (ibt-105 ibt-145) MUST belong to the UNCL 7161 code list
context
cac:AllowanceCharge[cbc:ChargeIndicator = true()]/cbc:AllowanceChargeReasonCode
test
(
  (
    not(contains(normalize-space(.), ' ')) and
    contains(' AA AAA AAC AAD AAE AAF AAH AAI AAS AAT AAV AAY AAZ ABA ABB ABC ABD ABF ABK ABL ABN ABR ABS ABT ABU ACF ACG ACH ACI ACJ ACK ACL ACM ACS ADC ADE ADJ ADK ADL ADM ADN ADO ADP ADQ ADR ADT ADW ADY ADZ AEA AEB AEC AED AEF AEH AEI AEJ AEK AEL AEM AEN AEO AEP AES AET AEU AEV AEW AEX AEY AEZ AJ AU CA CAB CAD CAE CAF CAI CAJ CAK CAL CAM CAN CAO CAP CAQ CAR CAS CAT CAU CAV CAW CAX CAY CAZ CD CG CS CT DAB DAD DAC DAF DAG DAH DAI DAJ DAK DAL DAM DAN DAO DAP DAQ DL EG EP ER FAA FAB FAC FC FH FI GAA HAA HD HH IAA IAB ID IF IR IS KO L1 LA LAA LAB LF MAE MI ML NAA OA PA PAA PC PL RAB RAC RAD RAF RE RF RH RV SA SAA SAD SAE SAI SG SH SM SU TAB TAC TT TV V1 V2 WH XAA YY ZZZ ',
      concat(' ', normalize-space(.), ' ')
    )
  )
)

JP PINT 0.9 RULES
Obsoleted
Shared Rules (0.9)
ibr-44(fatal)
[ibr-44]-Each Invoice line charge (ibg-28) shall have an Invoice line charge reason (ibt-144) or an invoice line allowance reason code (ibt-145).
context
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] | //cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]
test
exists(cbc:AllowanceChargeReason) or
exists(cbc:AllowanceChargeReasonCode)

PEPPOL BIS BILLING 3.0 RULES
EN16931 model bound to UBL rules
BR-CO-08 (fatal)
Invoice line charge reason code (BT-145) and Invoice line charge reason (BT-144) shall indicate the same type of charge reason.
context
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] |
//cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]
test
true()
BR-CO-24 (fatal)
Each Invoice line charge (BG-28) shall contain an Invoice line charge reason (BT-144) or an Invoice line charge reason code (BT-145), or both.
context
//cac:InvoiceLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()] |
//cac:CreditNoteLine/cac:AllowanceCharge[cbc:ChargeIndicator = true()]
test
exists(cbc:AllowanceChargeReason) or
exists(cbc:AllowanceChargeReasonCode)